Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  The archives Element
Prev Next

A database may be associated with one or more archives. The association is done through the <archives> element:

<database id="myDB" singleInstance="true" type="Sitecore.Data.Database, Sitecore.Kernel">
 <param desc="name">$(id)</param>
  ...
  <archives hint="list:AddArchive">
   <archive path="archives/archive[@id='archive']"/>
    <archive path="archives/archive[@id='recyclebin']"/>
  </archives>
</database>

The actual archive definitions are usually located below the <archives> main section.

There are two reserved names in connection with archives. The archive named 'archive' is used when archiving items in a database, and the one named 'recyclebin' is used when deleting items. If an archive name 'recyclebin' is available when deleting an item, the item is moved to the 'recyclebin' archive rather than being physically deleted.


Prev Next